/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.click.app.service.impl;

import com.click.app.dao.FeatureProductNameDao;
import com.click.app.model.FeatureProductName;
import com.click.app.service.FeatureProductNameManager;
import java.util.List;

/**
 *
 * @author orgale
 */
public class FeatureProductNameManagerImpl extends GenericManagerImpl<FeatureProductName, Long> implements FeatureProductNameManager {

    FeatureProductNameDao featureProductNameDao;

    public FeatureProductNameManagerImpl(FeatureProductNameDao featureProductNameDao) {
        super(featureProductNameDao);
        this.featureProductNameDao = featureProductNameDao;
    }

    public List<FeatureProductName> findById(Long id) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public List<FeatureProductName> findFeatureProductNames() {
        return featureProductNameDao.findFeatureProductNames();
    }

    public List<FeatureProductName> findFeatureProductNamesName(String name){
        return featureProductNameDao.findFeatureProductNamesName(name);
    }

    public FeatureProductName findFeatureProductNamesByName(String name){
        return featureProductNameDao.findFeatureProductNamesName(name).get(0);
    }


    public List<String> featureProductNamesNames(){
        return featureProductNameDao.featureProductNamesNames();
    }
}
